package com.candy.dao;

import com.candy.pojo.StudentInfo;

import java.util.List;

public interface StudentInfoMapper {
    List<StudentInfo> selectAllInfoByIds(List ids);

    /**
     * 动态SQL：where
     * @param studentInfo
     * @return
     */
    List<StudentInfo> selectAllInfoByWhere(StudentInfo studentInfo);

    /**
     * 动态SQL:choose、when、otherwise
     * @param studentInfo
     * @return
     */
    List<StudentInfo> selectAllInfoByParam(StudentInfo studentInfo);



    int deleteByPrimaryKey(Integer id);

    int insert(StudentInfo record);

    int insertSelective(StudentInfo record);

    StudentInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(StudentInfo record);

    int updateByPrimaryKey(StudentInfo record);
}